package com.ml.mall.bean.res.order;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by kyyang on 2021/5/29 15:30
 */
@Data
@ApiModel(value = "分页返回订单")
public class OrderQueryPageRes {

    private Long id;

    @ApiModelProperty("订单创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createAt;

    @ApiModelProperty("订单号")
    private Long oid;

    @ApiModelProperty("公司名称")
    private String companyName;

    @ApiModelProperty("公司编号")
    private Long companyId;

    @ApiModelProperty("完成时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date completionDate;

    @ApiModelProperty("订单状态")
    private int state;

    @ApiModelProperty("实付金额")
    private BigDecimal subFee;

}
